package cn.lan.scau_hotel_service.repository;

import cn.lan.scau_hotel_service.entity.Order;
import cn.lan.scau_hotel_service.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface UserRepository extends JpaRepository<User,Integer> {


    User getUserById(int id);

    User getUserByOpenid(String openid);

    int deleteUserById(int id);

    int deleteUserByOpenid(String openid);

    List<User> findAll();

}
